x86/hvm: Forced Emulation Prefix for debug builds of Xen
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 25 Sep 2014 10:06:24 +0000 (12:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Sep 2014 10:06:24 +0000 (12:06 +0200)
commit1efde771adb6685dcf6fa7e3c4889dee863c950f
treed851c09b5389e6a115e30b5e47d1a67aedecfb32
parent5a88f6fede9af886bc4a32cf1b3cf7c36ef7baad
x86/hvm: Forced Emulation Prefix for debug builds of Xen

Analysis of XSAs 105 and 106 show that is possible to force a race condition
which causes any arbitrary instruction to be emulated.

To aid testing, explicitly introduce the Forced Emulation Prefix for debug
builds alone.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
docs/misc/xen-command-line.markdown
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/hvm/hvm.h